﻿using System.Windows.Controls;
using System.ComponentModel.Composition;
using SL4_MVVM_MEF.MEFModule.Helper;

namespace SL4_MVVM_MEF.MEFModule.Views
{
    /// <summary>
    /// A Sample View
    /// </summary>
    [PartCreationPolicy(CreationPolicy.NonShared)]
    [Export(typeof(UserControl))]
    [ExportMetadata("ContainerType", "SL4_MVVM_MEF_Navigation.MEFModuleContainer")]
    public partial class SampleView : UserControl
    {
        public SampleView()
        {
            InitializeComponent();
        }

        [Import(ExportNames.SampleViewVM)]
        public object DataContextImported { set { this.DataContext = value; } }
    }
}
